// [[ OnflowGenerator File UUID: b949b6fed039433ea6bfe9575c1a48d3  ]]
package com.itdct.onflow.system.file.qo

import com.itdct.onflow.core.qo.BaseQo
import com.itdct.onflow.core.type.Add
import com.itdct.onflow.core.type.Update
import io.swagger.v3.oas.annotations.media.Schema
import jakarta.validation.constraints.NotBlank
import jakarta.validation.constraints.NotNull
import org.hibernate.validator.constraints.Length

/**
 * @author DCTANT
 * @date 2025-09-28 16:52:23
 * @version 1.0
 * @description 系统文件错误信息编辑入参
 */
@Schema(name = "系统文件错误信息编辑入参", description = "系统文件错误信息编辑入参")
class SysFileFailReasonEditQo : BaseQo() {
    // [[ OnflowGenerator Range (- fields -) Start ]]
    @Schema(title = "文件id关联", example = "")
    @NotNull(message = "请输入文件id关联", groups = [Add::class, Update::class])
    var fileId: Long? = null

    @Schema(title = "行号", example = "")
    @NotNull(message = "请输入行号", groups = [Add::class, Update::class])
    var rowNum: Int? = null

    @Schema(title = "错误信息", example = "")
    @NotBlank(message = "请输入错误信息", groups = [Add::class, Update::class])
    @Length(max = 500, message = "错误信息不能超过500个字符", groups = [Add::class, Update::class])
    var errorMessage: String? = null

    @Schema(title = "整改意见", example = "")
    @Length(max = 500, message = "整改意见不能超过500个字符", groups = [Add::class, Update::class])
    var advice: String? = null

// [[ OnflowGenerator Range (- fields -) End ]]
}